import { RouteRecordRaw } from 'vue-router';
import CalculationOfYieldRate from "/@/views/yiledAndSubsection/CalculationOfYieldRate.vue";
import DefectYieldAnalysis from "/@/views/yiledAndSubsection/DefectYieldAnalysis.vue";
import CurrenSituationLossesOptimization from "/@/views/yiledAndSubsection/CurrenSituationLossesOptimization.vue";
import HotRollingWidthAllowance from "/@/views/yiledAndSubsection/HotRollingWidthAllowance.vue";
import HotRollingReductionAmount from "/@/views/yiledAndSubsection/HotRollingReductionAmount.vue";
export const yiledAndSubsectionRouters: Array<RouteRecordRaw> = [
  {
    path: '/yiledAndSubsection',
    name: "yiledAndSubsection",
    meta: {
      translated: '全流程成材率分析优化模型  合并 分卷优化功能',
    },
    children:[
      {
        path: 'CalculationOfYieldRate',
        name: "CalculationOfYieldRate",
        component: CalculationOfYieldRate,
        meta: {
          translated: '各产线单卷成材率计算及人工录入'
        }
      },
      {
        path: 'DefectYieldAnalysis',
        name: "DefectYieldAnalysis",
        component: DefectYieldAnalysis,
        meta: {
          translated: '缺陷-成材率分析',
          type:1
        }
      },
      {
        path: 'CurrenSituationLossesOptimization',
        name: "CurrenSituationLossesOptimization",
        component: CurrenSituationLossesOptimization,
        meta: {
          translated: '成材率分档数据统计，现状、损失、优化'
        }
      },
      {
        path: 'HotRollingWidthAllowance',
        name: "HotRollingWidthAllowance",
        component: HotRollingWidthAllowance,
        meta: {
          translated: '热轧宽度余量统计分析'
        }
      },
      {
        path: 'HotRollingReductionAmount',
        name: "HotRollingReductionAmount",
        component: HotRollingReductionAmount,
        meta: {
          translated: '热轧缩径量规格统计'
        }
      },
    ]
  },
];